;(function(){
  'use strict';
angular.module('controllers.omdisplay.recAbnormal',[])
  .controller('RecAbnormalCtrl', recAbnormal);
  /**
   * 对账差异分析
   * @param   $scope      作用域
   * @param   CoreService 公共service
   */
  function recAbnormal ($scope,CoreService) {
    //tab页对应url
    var tabs=['/fileDetail','/diffCount'];
    //控制刷新controller后选中哪个tab
    $scope.selectedIndex = CoreService.navgit(tabs);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = tabs.indexOf(state.url);
    });

  }

  recAbnormal.$inject = ['$scope','CoreService'];
})();